/**
 * CopyRight © 2012 USTC SINOVATE SOFTWARE CO.LTD All Rights Reserved.
 */

package com.cmcc.zysoft.infocollection.dao;

import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import com.cmcc.zysoft.infocollection.model.Channel;
import com.starit.common.dao.hibernate.HibernateBaseDaoImpl;

/**
 * @author 袁凤建
 * <br />邮箱: yuan.fengjian@ustcinfo.com
 * <br />描述: ChannelPcDao.java
 * <br />版本: 1.0.0
 * <br />日期: 2013-8-14 下午5:53:57
 * <br />CopyRight © 2012 USTC SINOVATE SOFTWARE CO.LTD All Rights Reserved.
 */

@Repository
public class ChannelPcDao extends HibernateBaseDaoImpl<Channel, String> {

	@Autowired
	private JdbcTemplate jdbcTemplate;
	
	/**
	 * 获取频道列表.
	 * @return List<Map<String, Object>
	 */
	public List<Map<String, Object>> getChannelList() {
		String sql = 
				" SELECT a.channel_id AS channelId, a.channel_name AS channelName, " +
				" a.mark1 AS mark1, a.mark2 AS mark2, a.mark3 AS mark3, a.mark4 AS mark4 " +
				" FROM tb_b_channel a ";
		return this.jdbcTemplate.queryForList(sql);
	}
}